#@TYPE: Machine
#@NAME: FTBMC FT2004
#@DESCRIPTION: Common machine configuration for the Feiting FT2004 Chip

require conf/machine/include/ftbmc.inc

# UBOOT_MACHINE ?= "ft2004_defconfig"
UBOOT_MACHINE ?= "e2000_defconfig"

#UBOOT_ENTRYPOINT ?= "0x88080000"
#UBOOT_LOADADDRESS ?= "0x88080000"

#UBOOT_LOADADDRESS ?= "0x3c000000"
#UBOOT_ENTRYPOINT ?= "0x3c000000"

UBOOT_LOADADDRESS ?= "0x80080000"
UBOOT_ENTRYPOINT ?= "0x80080000"
UBOOT_DTB_LOADADDRESS ?= "0x82000000"

MACHINE_EXTRA_RDEPENDS += "udev-ftbmc-vuart"

# DEFAULTTUNE ?= "cortexa53"
DEFAULTTUNE ?= "armv8a"
# DEFAULTTUNE ?= "cortexa72"

SERIAL_CONSOLES = "115200;ttyS0"

SOC_FAMILY = "ftbmc-ft2"
include conf/machine/include/soc-family.inc
MACHINEOVERRIDES .= ":ft2004"
#CCACHE ?= "/mnt/ft2004/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/bin/"
# TARGET_SYS ?="aarch64-linux-gnu"
#BUILD_PREFIX ?= "aarch64-linux-gnu"

#require conf/machine/include/arm/arch-armv8a.inc
require conf/machine/include/arm/armv8a/tune-cortexa72.inc
# Add some file system types to IMAGE_FSTYPES if necessary.
#IMAGE_FSTYPES += "\
#    squashfs \
#    squashfs-xz \
#    "
#the following line will cause krb5 cli11 openldap build config error
#TARGET_FPU = "${@bb.utils.contains('TUNE_FEATURES', [ 'aarch64', 'armv8a' ], 'hard', 'soft', d)}"

